package com.luhongzhe.data;

/**
 * @author 	luhongzhe
 * @email  	azhe0660@gmail.com
 * @date   	2011-6-27
 */

public class LState
{
	private int level = 1;
	
	private int totalCut;
	
	private int usedCut;
	
	private int[] successConditon;
	
	public LState(int level, int totalCut, int[] successConditon)
	{
		this.level = level;
		this.totalCut = totalCut;
		this.successConditon = successConditon;
	}

	public int getLevel()
	{
		return level;
	}
	
	public int getTotalCut()
	{
		return totalCut;
	}
	
	public int getLeftCut()
	{
		return totalCut - usedCut;
	}
	
	public int[] getSuccessConditon()
	{
		return successConditon;
	}
	
	public void newCut()
	{
		usedCut ++;
	}

}
